package com.bt.table.ppt;

/**
 * Spc_bis_ruleId entity. @author MyEclipse Persistence Tools
 */

public class Spc_bis_ruleId implements java.io.Serializable {

	// Fields

	private String spc_rul_id;
	private String spc_rul_typ;

	// Constructors

	/** default constructor */
	public Spc_bis_ruleId() {
	}

	/** full constructor */
	public Spc_bis_ruleId(String spc_rul_id, String spc_rul_typ) {
		this.spc_rul_id = spc_rul_id;
		this.spc_rul_typ = spc_rul_typ;
	}

	// Property accessors

	public String getSpc_rul_id() {
		return this.spc_rul_id;
	}

	public void setSpc_rul_id(String spc_rul_id) {
		this.spc_rul_id = spc_rul_id;
	}

	public String getSpc_rul_typ() {
		return this.spc_rul_typ;
	}

	public void setSpc_rul_typ(String spc_rul_typ) {
		this.spc_rul_typ = spc_rul_typ;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof Spc_bis_ruleId))
			return false;
		Spc_bis_ruleId castOther = (Spc_bis_ruleId) other;

		return ((this.getSpc_rul_id() == castOther.getSpc_rul_id()) || (this
				.getSpc_rul_id() != null && castOther.getSpc_rul_id() != null && this
				.getSpc_rul_id().equals(castOther.getSpc_rul_id())))
				&& ((this.getSpc_rul_typ() == castOther.getSpc_rul_typ()) || (this
						.getSpc_rul_typ() != null
						&& castOther.getSpc_rul_typ() != null && this
						.getSpc_rul_typ().equals(castOther.getSpc_rul_typ())));
	}

	public int hashCode() {
		int result = 17;

		result = 37
				* result
				+ (getSpc_rul_id() == null ? 0 : this.getSpc_rul_id()
						.hashCode());
		result = 37
				* result
				+ (getSpc_rul_typ() == null ? 0 : this.getSpc_rul_typ()
						.hashCode());
		return result;
	}

}